package com.sr.examination.other;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.sr.examination.R;
import com.sr.examination.main.MainActivity;
import com.sr.examination.user.Account;
import com.tl.commonlibrary.tool.DeviceUtil;
import com.tl.commonlibrary.ui.BaseFragmentActivity;

/**
 * Created by JongSung on 18/2/25.
 */

public class WelcomeActivity extends BaseFragmentActivity {
    public static void start(Context context) {
        Intent starter = new Intent(context, WelcomeActivity.class);
        context.startActivity(starter);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_welcome);
        getWindow().getDecorView().postDelayed(new Runnable() {
            @Override
            public void run() {
                MainActivity.start(context);
                finish();
            }
        }, 1000);
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void onFragmentTrigger(int tag, Bundle bundle) {

    }
}
